import request from '@/utils/request'
import linq from 'linq'
export async function getJfsrmx1(XXID,CJPC){
    //
    
    let res =  await request({
        url: `/Jfsrmx1s?$apply=filter(XXID eq '${XXID}' and CJPC eq '${CJPC}')`,
        method: 'get',
      })
    return res.data.value;
    //
    
}
export async function bulkAddJfsrmx1(data){
  //
  
  let res =  await request({
      url: '/Jfsrmx1s/BulkAddJfsrmx1',
      method: 'post',
      data:data
    })
  return res.data.value;
  //
  
}
export async function updateJfsrmx1(model){
    let res =  await request({
        url: `/Jfsrmx1s(${model.ID})`,
        method: 'put',
        data: model
      })
      return res.data;
}
export async function deleteJfsrmx1(model){
    let res = await  request({
        url: `/Jfsrmx1s/${model.ID}`,
        method: 'delete',
      })
      return res.data;
}
export async function addJfsrmx1(model){
   
    let res =  await request({
      url: '/Jfsrmx1s',
      method: 'post',
      data: model,
    })
    return res.data;
}